package mvp.com.bigimage;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import java.io.IOException;
import java.io.InputStream;

import mvp.com.bigimage.view.LargeImageView;

public class TwoActivity extends AppCompatActivity {

    LargeImageView img_large;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_two);

        img_large = (LargeImageView) findViewById(R.id.iv_large);

        InputStream is = null;
        try {
            is = getAssets().open("qm.jpg");
        } catch (IOException e) {
            e.printStackTrace();
        }

        img_large.setInputStream(is);
    }
}
